package com.peas.platform.module.icims.base.mdm.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("银行")
public class BankVo extends BaseVo {

    @Comment(value = "银行类型", enumType = "BankType")
    @ApiModelProperty(value = "银行类型", notes = "枚举取值:BankType")
    @NotBlank(message = "银行类型不能为空")
    @Size(max = 20, message = "银行类型不能超过20个字符")
    private String bankType;

    @Comment(value = "银行编码")
    @ApiModelProperty(value = "银行编码")
    @Size(max = 100, message = "银行编码不能超过100个字符")
    private String bankCode;

    @Comment(value = "银行名称")
    @ApiModelProperty(value = "银行名称")
    @NotBlank(message = "银行名称不能为空")
    @Size(max = 200, message = "银行名称不能超过200个字符")
    private String bankName;

    @Comment(value = "地址")
    @ApiModelProperty(value = "地址")
    @Size(max = 200, message = "地址不能超过200个字符")
    private String address;

    @Comment(value = "电话")
    @ApiModelProperty(value = "电话")
    @Size(max = 20, message = "电话不能超过20个字符")
    private String telephone;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    @Comment(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

}
